BIT%

Syntax: BIT% (number%,bitnr)  with bitnr=0..15
Location: BIT

The function BIT% returns the status of a specified bit of an integer number% (when it is converted to binary form).

CROSS-REFERENCE:
BIN$ converts a decimal number to a binary and BIN back again.
The length of a number x in binary form is INT (LOG2 (ABS (x))+1).
